<template>
  <div class="header">
    <div class="header-left">
      <router-link
        to="/"
        tag="div"
        class="iconfont back-icon"
      >
        &#xe624;
      </router-link>
    </div>
    <router-link
      to="/scenic"
      tag="div"
      class="header-input">
      <input type="text" placeholder="输入城市或景点"/>
    </router-link>
    <router-link to='/city'>
      <div class="header-right">
         搜索
      </div>
    </router-link>
  </div>

</template>

<script>
  export default {
    name: 'ScenicHeader',
  }
</script>

<style  scoped>
  .header {
    display: flex;
    line-height: 64px;
    background-color: green;
    color: #fff;
    width: 100%;
    position: fixed;
    z-index: 2;

  }

  .header-left{
    width: 32px;
    float: left;
  }
  .back-icon{
    text-align: center;
    font-size: 20px;
  }
  .header-input {
    flex: 1;
    height: 32px;
    line-height: 32px;
    margin-top: 18px;
    margin-left: 10px;
    padding-left: 10px;
    background: #fff;
    border-radius: 32px;
    color: #ccc;
    text-align: center;
  }
  .header-input input{
    width: 100%;
    height:100%;
    border-radius: 32px;
    text-align: center;
    outline:none;
    border:0px;

  }

  .header-right {
    min-width: 52px;
    padding: 5px;
    float: right;
    text-align: center;
    color: #fff
  }


</style>





